﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace GameObjectsAndEquipment
{
    public class Ampoule : Item
    {
        public int hp;
        private VampireRider player;

        public Ampoule(Vector2 position, Texture2D texture, VampireRider player, int hp = 2)
            :base(position,texture,player,"Ampoule")
        {
            this.player = player;
            this.hp = hp;
        }

        public override void Update(GameTime gametime)
        {
            base.Update(gametime);
        }

        public override void Use()
        {
            player.Heal(hp);
        }
    }
}
